.class public final Lnbisdk/db;
.super Lnbisdk/u;

# interfaces
.implements Lnbisdk/pl;


# instance fields
.field private fa:Ljava/util/Vector;


# direct methods
.method private constructor <init>()V
    .locals 2

    invoke-direct {p0}, Lnbisdk/u;-><init>()V

    new-instance v0, Ljava/util/Vector;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Ljava/util/Vector;-><init>(I)V

    iput-object v0, p0, Lnbisdk/db;->fa:Ljava/util/Vector;

    iget-object v0, p0, Lnbisdk/db;->fa:Ljava/util/Vector;

    invoke-virtual {v0, p0}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    return-void
.end method

.method private static o(Ljava/lang/String;)Ljava/lang/String;
    .locals 3

    :try_start_0
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v0

    const/16 v1, 0x24

    if-lt v0, v1, :cond_1

    const/4 v0, 0x0

    const/16 v1, 0x14

    invoke-virtual {p0, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    const/16 v1, 0x14

    invoke-virtual {p0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v1

    const-string v2, "AykaNSVCEcrnhiqacLY+F5aeisd7pmiATyTGMuRS"

    invoke-static {v1, v2}, Lnbisdk/sf;->c(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Ljava/lang/String;

    invoke-static {v1}, Lnbisdk/sf;->aN(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const-string v2, "AykaNSVCEcrnhiqacLY+F5aeisd7pmiATyTGMuRS"

    invoke-static {v1, v2}, Lnbisdk/sf;->d(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/String;-><init>([B)V

    :goto_0
    return-object v0

    :cond_0
    sget-boolean v0, Lnbisdk/bk;->cG:Z

    if-eqz v0, :cond_1

    const-string v0, "Hmac mismatch"

    invoke-static {v0}, Lnbisdk/ef;->J(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_1
    :goto_1
    const/4 v0, 0x0

    goto :goto_0

    :catch_0
    move-exception v0

    sget-boolean v1, Lnbisdk/bk;->cG:Z

    if-eqz v1, :cond_1

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Ex : "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lnbisdk/ef;->J(Ljava/lang/String;)V

    goto :goto_1
.end method

.method private static p(Ljava/lang/String;)Ljava/lang/String;
    .locals 5

    const/16 v0, 0x3b

    :try_start_0
    invoke-virtual {p0, v0}, Ljava/lang/String;->lastIndexOf(I)I

    move-result v0

    add-int/lit8 v1, v0, 0x1

    invoke-virtual {p0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v1

    const/16 v2, 0x3b

    invoke-virtual {p0, v2}, Ljava/lang/String;->indexOf(I)I

    move-result v2

    add-int/lit8 v2, v2, 0x1

    invoke-virtual {p0, v2, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {p0, v3, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    const-string v3, "AykaNSVCEcrnhiqacLY+F5aeisd7pmiATyTGMuRS"

    invoke-static {v0, v3}, Lnbisdk/sf;->d(Ljava/lang/String;Ljava/lang/String;)[B

    move-result-object v0

    new-instance v3, Ljava/lang/String;

    array-length v4, v0

    invoke-static {v0, v4}, Lnbisdk/sf;->f([BI)[C

    move-result-object v0

    invoke-direct {v3, v0}, Ljava/lang/String;-><init>([C)V

    const-string v0, "AykaNSVCEcrnhiqacLY+F5aeisd7pmiATyTGMuRS"

    invoke-static {v3, v0}, Lnbisdk/sf;->c(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    move-object v0, v2

    :goto_0
    return-object v0

    :cond_0
    sget-boolean v0, Lnbisdk/bk;->cG:Z

    if-eqz v0, :cond_1

    const-string v0, "Hmac mismatch"

    invoke-static {v0}, Lnbisdk/ef;->J(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_1
    :goto_1
    const/4 v0, 0x0

    goto :goto_0

    :catch_0
    move-exception v0

    sget-boolean v1, Lnbisdk/bk;->cG:Z

    if-eqz v1, :cond_1

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Ex : "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lnbisdk/ef;->J(Ljava/lang/String;)V

    goto :goto_1
.end method


# virtual methods
.method public final a(Lnbisdk/om;)Z
    .locals 6

    const/4 v5, 0x5

    const/4 v4, 0x4

    const/4 v3, 0x0

    const/4 v1, 0x2

    const/4 v2, 0x1

    invoke-virtual {p1}, Lnbisdk/om;->jL()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    move v0, v3

    :goto_0
    return v0

    :pswitch_0
    new-instance v0, Lnbisdk/py;

    invoke-direct {v0}, Lnbisdk/py;-><init>()V

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v0

    invoke-virtual {v0}, Lnbisdk/ix;->gU()Z

    move-result v0

    if-nez v0, :cond_1

    move v0, v2

    :goto_1
    if-eqz v0, :cond_2

    move v1, v4

    :goto_2
    invoke-virtual {p1, v1}, Lnbisdk/om;->aY(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    if-eqz v0, :cond_3

    move v1, v5

    :goto_3
    invoke-virtual {p1, v1}, Lnbisdk/om;->aY(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    if-eqz v0, :cond_4

    const/4 v0, 0x6

    :goto_4
    invoke-virtual {p1, v0}, Lnbisdk/om;->aY(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    sget-boolean v0, Lnbisdk/bk;->cG:Z

    if-eqz v0, :cond_0

    const-string v0, "Place Message SMS"

    invoke-static {v0}, Lnbisdk/ef;->J(Ljava/lang/String;)V

    :cond_0
    move v0, v2

    goto :goto_0

    :cond_1
    move v0, v3

    goto :goto_1

    :cond_2
    const/4 v1, 0x3

    goto :goto_2

    :cond_3
    move v1, v4

    goto :goto_3

    :cond_4
    move v0, v5

    goto :goto_4

    :pswitch_1
    invoke-virtual {p1, v1}, Lnbisdk/om;->aY(I)Ljava/lang/String;

    move-result-object v0

    const/16 v1, 0x2c

    invoke-static {v0, v1, v2}, Lnbisdk/qm;->a(Ljava/lang/String;CZ)[Ljava/lang/String;

    sget-boolean v0, Lnbisdk/bk;->cG:Z

    if-eqz v0, :cond_5

    const-string v0, "Web Sync SMS"

    invoke-static {v0}, Lnbisdk/ef;->J(Ljava/lang/String;)V

    :cond_5
    move v0, v2

    goto :goto_0

    :pswitch_2
    invoke-virtual {p1, v1}, Lnbisdk/om;->aY(I)Ljava/lang/String;

    move-result-object v0

    const-string v1, "F"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    sget-boolean v0, Lnbisdk/bk;->cG:Z

    if-eqz v0, :cond_6

    const-string v0, "Place Message Error SMS"

    invoke-static {v0}, Lnbisdk/ef;->J(Ljava/lang/String;)V

    :cond_6
    move v0, v2

    goto :goto_0

    :pswitch_3
    invoke-virtual {p1, v1}, Lnbisdk/om;->aY(I)Ljava/lang/String;

    move-result-object v0

    const-string v1, "I"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    sget-boolean v0, Lnbisdk/bk;->cG:Z

    if-eqz v0, :cond_7

    const-string v0, "POI Update SMS "

    invoke-static {v0}, Lnbisdk/ef;->J(Ljava/lang/String;)V

    :cond_7
    move v0, v2

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x2
        :pswitch_1
        :pswitch_0
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method public final n(Ljava/lang/String;)V
    .locals 4

    const/4 v3, 0x0

    :try_start_0
    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v0

    invoke-virtual {v0}, Lnbisdk/ix;->gU()Z

    move-result v0

    sget-boolean v1, Lnbisdk/bk;->cG:Z

    if-eqz v1, :cond_0

    invoke-static {p1}, Lnbisdk/ef;->J(Ljava/lang/String;)V

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "V4 : "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lnbisdk/ef;->J(Ljava/lang/String;)V

    :cond_0
    if-eqz v0, :cond_3

    invoke-static {p1}, Lnbisdk/db;->o(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :goto_0
    sget-boolean v2, Lnbisdk/bk;->cG:Z

    if-eqz v2, :cond_1

    invoke-static {v1}, Lnbisdk/ef;->J(Ljava/lang/String;)V

    :cond_1
    if-nez v1, :cond_4

    :cond_2
    :goto_1
    return-void

    :cond_3
    invoke-static {p1}, Lnbisdk/db;->p(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    goto :goto_0

    :cond_4
    if-eqz v0, :cond_5

    const/16 v0, 0x7c

    :goto_2
    const/4 v2, 0x0

    invoke-static {v1, v0, v2}, Lnbisdk/qm;->a(Ljava/lang/String;CZ)[Ljava/lang/String;

    move-result-object v0

    new-instance v1, Lnbisdk/om;

    invoke-direct {v1, v0}, Lnbisdk/om;-><init>([Ljava/lang/String;)V

    iget-object v0, p0, Lnbisdk/db;->fa:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v2

    move v0, v3

    :goto_3
    if-ge v3, v2, :cond_2

    if-nez v0, :cond_2

    iget-object v0, p0, Lnbisdk/db;->fa:Ljava/util/Vector;

    invoke-virtual {v0, v3}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/pl;

    invoke-interface {v0, v1}, Lnbisdk/pl;->a(Lnbisdk/om;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v0

    add-int/lit8 v3, v3, 0x1

    goto :goto_3

    :cond_5
    const/16 v0, 0x3b

    goto :goto_2

    :catch_0
    move-exception v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "SMS Process exception "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-wide/16 v1, 0x4000

    const/4 v3, 0x1

    invoke-static {v0, v1, v2, v3}, Lnbisdk/pn;->a(Ljava/lang/String;JB)V

    goto :goto_1
.end method
